// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-11-16

#ifndef __BASE_LOG_H_COMMON_SVR_BASE__
#define __BASE_LOG_H_COMMON_SVR_BASE__

#pragma once

#include <common\base\debug.h>

namespace JoyServer
{

extern char* g_logDataBase;
extern char* g_logServer;
extern char* g_logNetwork;

#define JOY_LOG_A(path) CJoyLogTool(path, NULL, 0)
#ifdef _DEBUG
#   define JOY_LOG_D(path) CJoyLogTool(path, NULL, 0)
#else
#   define JOY_LOG_D(path) __noop
#endif

#define JOY_LOG_DB   JOY_LOG_A(g_logDataBase)
#define JOY_LOG_DB_D JOY_LOG_D(g_logDataBase)

#define JOY_LOG_SERVER   JOY_LOG_A(g_logServer)
#define JOY_LOG_SERVER_D JOY_LOG_D(g_logServer)

#define JOY_LOG_NETWORK   JOY_LOG_A(g_logNetwork)
#define JOY_LOG_NETWORK_D JOY_LOG_D(g_logNetwork)

} // namespace JoyServer

#endif  // __BASE_LOG_H_COMMON_SVR_BASE__